package com.example.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "sys_listener")
public class SysListener extends Model<SysListener> {

    //主键id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //库名
    @TableField(value = "db_schema")
    private String dbScheme;

    //表名
    @TableField(value = "db_table")
    private String dbTable;

    //监听事件
    @TableField(value = "db_event")
    private String dbEvent;

    //mq消息队列名称
    @TableField(value = "queue_name")
    private String queueName;

    //表达式
    @TableField(value = "expression")
    private String expression;

    //创建时间
    @TableField(value = "create_time")
    private Date createTime;

    //更新时间
    @TableField(value = "update_time")
    private Date updateTime;
}
